package pers.cj.pdos.mapper;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import pers.cj.pdos.vo.UserVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface UserMapper extends BaseMapper<User> {
    List<UserVo> listVo(@Param("page") Integer page, @Param("limit") Integer limit,
                        @Param("companyId")String companyId, @Param("storeId")String storeId,
                        @Param("content")String content, @Param("status")Integer status);


    Long count(@Param("companyId")String companyId, @Param("storeId")String storeId,
                        @Param("content")String content, @Param("status")Integer status);

    UserVo getVoById(@Param("id") String id);
    UserVo getVoByUserName(@Param("userName") String userName);

    /**
     * 检查是否被使用过
     * @param id
     * @return
     */
    List<Long> check(String id);
}
